﻿using Ending.Cases;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Forms;

namespace Ending
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            txtFilePath.Text = @"D:\FS\100_Csharp\A01\Projects\Ending\Ending\Document\pmtslog";
        }

        #region   方法

        //void GetFileList()


        #endregion



        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //测试日志文件读取
            CaseLogFiles _win = new CaseLogFiles();
            _win.Show();
        }

        private void BasicTestButton_Click(object sender, RoutedEventArgs e)
        {
            //基本配置等基本功能测试
            CaseBasicFunctions _win = new CaseBasicFunctions();
            _win.Show();
        }

        private void BtnSelectFile_Click(object sender, RoutedEventArgs e)
        {


            FolderBrowserDialog fbd = new FolderBrowserDialog();
            // fbd.Description = "pls select a folder";
            if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                //textBox1.Text = fbd.SelectedPath;
                txtFilePath.Text = fbd.SelectedPath;
            }

        }
    }
}
